package de.baumann.browser.api.net

import de.baumann.browser.BuildConfig
import de.baumann.browser.api.net.base.BaseUrl
import de.baumann.browser.api.net.vo.OcTransfer
import de.baumann.browser.api.net.vo.Result
import io.reactivex.Observable
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

//@BaseUrl("http://47.92.125.0:8134/coin/")
@BaseUrl("${BuildConfig.FUCK_GG_API}coin/")
interface SBApiService {

    @FormUrlEncoded
    @POST("transRecord")
    fun getTransferRecord(@Field("address") address: String,
                          @Field("type") type: String,
                          @Field("coinType") coinType: String): Observable<Result<List<OcTransfer>>>
}